import request from '@/utils/request'
// 查询分页列表信息
export const gettablelistapi = params => request.get('ecm-microservice-biz/ecm/energy/schedule/set/page', { params })
// 新增
export const postaddlistapi = data => request.post('ecm-microservice-biz/ecm/energy/schedule/set/add', data)
// 修改
export const postupdatelistapi = data => request.post('ecm-microservice-biz/ecm/energy/schedule/set/update', data)
// 删除
export const postdellistapi = data => request.post(`ecm-microservice-biz/ecm/energy/schedule/set/delete?id=${data.id}`)
// 产品能耗指标维护
// 、查询分页列表信息
export const getzhibiaolistapi = params => request.get('ecm-microservice-biz/ecm/energy/product/quota/set/page', { params })
// 批量保存
export const postpiliangsubmit = data => request.post('ecm-microservice-biz/ecm/energy/product/quota/set/add', data)
// 均耗指标维护
export const getjunhaolistapi = params => request.get('ecm-microservice-biz/ecm/energy/avg/quota/set/page', { params })
// 批量保存均耗指标
export const postpiliangjunhaoapi=data=>request.post('ecm-microservice-biz/ecm/energy/avg/quota/set/add', data)